#include <emscripten.h>

#include "EyerCore/EyerCore.hpp"

#include "WebCodecsThread.hpp"

extern "C" {

EMSCRIPTEN_KEEPALIVE
int webcodec_start_decoder() {
    EyerLog("webcodec_start_decoder\n");

    Eyer::WebCodecsThread * thread = new Eyer::WebCodecsThread();
    thread->Start();
    return 0;
}

}

int main(int argc,char **argv)
{
    EyerLog("WASM Loaded\n");
	return EXIT_SUCCESS;
}